import request from '@/utils/request'

// 查询tbDatas列表
export function listTbDatas(query) {
  return request({
    url: '/system/tbDatas/list',
    method: 'get',
    params: query
  })
}

// 查询tbDatas详细
export function getTbDatas(id) {
  return request({
    url: '/system/tbDatas/' + id,
    method: 'get'
  })
}

// 新增tbDatas
export function addTbDatas(data) {
  return request({
    url: '/system/tbDatas',
    method: 'post',
    data: data
  })
}

// 修改tbDatas
export function updateTbDatas(data) {
  return request({
    url: '/system/tbDatas',
    method: 'put',
    data: data
  })
}

// 删除tbDatas
export function delTbDatas(id) {
  return request({
    url: '/system/tbDatas/' + id,
    method: 'delete'
  })
}

// 导出tbDatas
export function exportTbDatas(query) {
  return request({
    url: '/system/tbDatas/export',
    method: 'get',
    params: query
  })
}